<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?python
sourcetype = ["GAUGE", "COUNTER", "DERIVE", "ABSOLUT"]
?>

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"
    py:extends="'master.kid'">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
<title>Item list - PyHMon Web Interface</title>
</head>
<body>
    <h2>Node: ${plugin.nodes.name}</h2>
    <table border="1" width="100%">
	<tr>
	<th>Name</th><th>Source type</th><th>Label</th><th>cdef</th>
	    <th>draw</th><th>Alert (min)</th><th>Alert (max)</th>
	<th>Edit</th><th>Graphs</th>
        </tr>
	<tr py:for="i in plugin.items"><td><b>
            <span py:replace="i.name">Name Here.</span>
	    </b>
	</td><td>
	    <span py:replace="sourcetype[i.stype]">Source type Goes Here</span>
	</td><td>
	    <span py:replace="i.label">Label Goes Here</span>
        </td><td>
	    <span py:replace="i.cdef">cdef Goes Here</span>
        </td><td>
	    <span py:replace="i.draw">draw Goes Here</span>
        </td><td>
	    <span py:replace="str(i.alert_min)">alert_min Goes Here</span>
	</td><td>
	    <span py:replace="str(i.alert_max)">alert_max Goes Here</span>
	</td><td>
	<form action="item" method="post">
	    <input type="hidden" name="itemid" value="${i.item_id}" />
            <input type="submit" name="submit" value="Go!"/>          
        </form>
	</td><td>
	<form action="graph" method="post">
	    <input type="hidden" name="itemid" value="${i.item_id}" />
            <input type="submit" name="submit" value="Go!"/>          
        </form>
	</td></tr>
    </table>
</body>
</html>
